/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package com.dp.vo;

import java.io.Serializable;
import java.util.Date;

import javax.persistence.Basic;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.NamedQueries;
import javax.persistence.NamedQuery;
import javax.persistence.Table;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;

/**
 *
 * @author wyr
 */
@Entity
@Table(name = "t_sms_mt")
//@NamedQueries({@NamedQuery(name = "TSmsMt.findAll", query = "SELECT t FROM TSmsMt t"), @NamedQuery(name = "TSmsMt.findById", query = "SELECT t FROM TSmsMt t WHERE t.id = :id"), @NamedQuery(name = "TSmsMt.findByServiceCode", query = "SELECT t FROM TSmsMt t WHERE t.serviceCode = :serviceCode"), @NamedQuery(name = "TSmsMt.findByPhoneNum", query = "SELECT t FROM TSmsMt t WHERE t.phoneNum = :phoneNum"), @NamedQuery(name = "TSmsMt.findByAccessNo", query = "SELECT t FROM TSmsMt t WHERE t.accessNo = :accessNo"), @NamedQuery(name = "TSmsMt.findBySmscontent", query = "SELECT t FROM TSmsMt t WHERE t.smscontent = :smscontent"), @NamedQuery(name = "TSmsMt.findByLinked", query = "SELECT t FROM TSmsMt t WHERE t.linked = :linked"), @NamedQuery(name = "TSmsMt.findByTranscationid", query = "SELECT t FROM TSmsMt t WHERE t.transcationid = :transcationid"), @NamedQuery(name = "TSmsMt.findByMttime", query = "SELECT t FROM TSmsMt t WHERE t.mttime = :mttime")})
public class TSmsMt implements Serializable {
    private static final long serialVersionUID = 1L;
    @Id
    @GeneratedValue(strategy = GenerationType.IDENTITY)
    @Basic(optional = false)
    @Column(name = "id")
    private Long id;
    @Column(name = "service_code")
    private String serviceCode;
    @Column(name = "phoneNum")
    private String phoneNum;
    @Column(name = "access_no")
    private String accessNo;
    @Column(name = "smscontent")
    private String smscontent;
    @Column(name = "linked")
    private String linked;
    @Column(name = "transcationid")
    private String transcationid;
    @Column(name = "mttime")
    @Temporal(TemporalType.TIMESTAMP)
    private Date mttime;

    public TSmsMt() {
    }

    public TSmsMt(Long id) {
        this.id = id;
    }

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getServiceCode() {
        return serviceCode;
    }

    public void setServiceCode(String serviceCode) {
        this.serviceCode = serviceCode;
    }

    public String getPhoneNum() {
        return phoneNum;
    }

    public void setPhoneNum(String phoneNum) {
        this.phoneNum = phoneNum;
    }

    public String getAccessNo() {
        return accessNo;
    }

    public void setAccessNo(String accessNo) {
        this.accessNo = accessNo;
    }

    public String getSmscontent() {
        return smscontent;
    }

    public void setSmscontent(String smscontent) {
        this.smscontent = smscontent;
    }

    public String getLinked() {
        return linked;
    }

    public void setLinked(String linked) {
        this.linked = linked;
    }

    public String getTranscationid() {
        return transcationid;
    }

    public void setTranscationid(String transcationid) {
        this.transcationid = transcationid;
    }

    public Date getMttime() {
        return mttime;
    }

    public void setMttime(Date mttime) {
        this.mttime = mttime;
    }

    @Override
    public int hashCode() {
        int hash = 0;
        hash += (id != null ? id.hashCode() : 0);
        return hash;
    }

    @Override
    public boolean equals(Object object) {
        // TODO: Warning - this method won't work in the case the id fields are not set
        if (!(object instanceof TSmsMt)) {
            return false;
        }
        TSmsMt other = (TSmsMt) object;
        if ((this.id == null && other.id != null) || (this.id != null && !this.id.equals(other.id))) {
            return false;
        }
        return true;
    }

    @Override
    public String toString() {
        return "com.dp.vo.TSmsMt[id=" + id + "]";
    }

}
